Groud = cc.Node.extend({
	ctor:function(p){
		this._super();
		p.addChild(this, 10, TAG_GROUD);
		this.init();
	},
	init : function(){
		this.setCascadeOpacityEnabled(true);
		var mirror = new Button(this,11,TAG_MIRROR,"#yiqi/mirror.png");
		mirror.setVisible(false);
		mirror.setPosition(410,412);
		var groud= new Button(this, 10, TAG_GROUD1, "#yiqi/groud.png",this.callback);
		groud.setVisible(false);
		groud.setPosition(400,284);
		var handright= new Button(this, 10, TAG_HAND, "#yiqi/hand_right.png",this.callback);
		handright.setVisible(false);
		handright.setPosition(800,400);
		var handpart= new Button(handright, 11, TAG_HAND1, "#yiqi/hand_part.png",this.callback);
		handpart.setPosition(handright.width*0.5,handright.height*0.5);
		var candle5 = new Button(handright,10,TAG_CANDLE5,"#yiqi/candle3.png",this.callback);	
		candle5.setPosition(handright.width*0.3,handright.height*0.7);
	},
	hand_action:function(){
		var candle = this.getChildByTag(TAG_HAND);
		var move = cc.moveBy(3, 20, 34.6);
		var seq = cc.sequence(move);
		candle.runAction(seq);
	},
	hand_back:function(){
		var candle = this.getChildByTag(TAG_HAND);
		var move = cc.moveBy(3, 20, 34.6);
		var seq = cc.sequence(move.reverse());
		candle.runAction(seq);
	},
	callback:function(p){
		var action = gg.flow.flow.action;
		var func=cc.callFunc(function() {
			gg.flow.next();
		},this);
		switch(p.getTag()){	
		case TAG_HAND:
			var seq = cc.sequence(cc.moveTo(1,478,340),
			cc.callFunc(function(){
					ll.run.getChildByTag(TAG_CANDLE).getChildByTag(TAG_CANDLE2).setVisible(true);
					ll.run.getChildByTag(TAG_CANDLE).getChildByTag(TAG_CANDLE3).setVisible(true);
					ll.run.getChildByTag(TAG_CANDLE).getChildByTag(TAG_GLASS).setVisible(true);
					ll.run.getChildByTag(TAG_CANDLE).getChildByTag(TAG_DESK).setVisible(true);
					ll.run.getChildByTag(TAG_CANDLE).getChildByTag(TAG_CANDLE4).setVisible(false);
					p.getChildByTag(TAG_CANDLE5).setSpriteFrame("yiqi/candle1.png");
					this.showCandle2 = new ShowTip("成像位置",cc.p(950,140));
					this.showCandle3 = new ShowTip("蜡烛位置",cc.p(700,140));
			},this),func);
			p.runAction(seq);
			break;
		}
	},
});